{%include file="m.index.header.tpl.php"%}
<!--主体部分-->

<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;margin-bottom:20px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10 text-center ">
          <div class="col-xs-6"><a type="button" class="btn btn-default " href="index.php?a=summarize.plancount">部门计划</a> </div>
          <div class="col-xs-6"><a type="button" class="btn btn-primary" href="index.php?a=summarize.summarizecount">部门总结</a></div>
        </div>
      </div>
    </div>
  </div>
  
  <!--<div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="superior_notice_add.html" style="width:30%">增加</a></div>
  </div>-->
  <div class="row" style="margin-top:10px;">
    <form name="myform" action="" method="get">
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">标题:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$summarize_title%}" name="summarize_title">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy" >
        <div class="form-group hierarchy" >
          <label for="" class="col-sm-2 control-label">部门:</label>
          <div class="col-sm-10">
            <select class="form-control" name="department_id">
				  <option value=""> 全部</option>
				  {%foreach from=$department_lists key=key item=value%}
				  <option value="{%$key%}"{%if $key == $department_id%}selected{%/if%}>{%$value%}</option>
				  {%/foreach%}
			</select>    
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">开始时间:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$from%}" id="from" name="from">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">结束时间:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
          </div>
        </div>
      </div>
      <div class="col-xs-12 distance" >
      <div class="form-group  text-center" style="padding-top:0px;">
	  <input type="hidden" name="a" value="summarize.plancount">
      <button type="submit" class="btn btn-success absolutely ">
      搜索
      <button>
      </div>
      </div>
    </form>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  {%foreach from=$summarize_lists key=key item=value%}
    <table class="table table-striped table-bordered"  id="middles">
      <tr>
        <td>学年</td>
        <td>{%$value.semester_xname%}</td>
      </tr>
      <tr>
        <td>学期</td>
        <td>{%$value.semester_name%}</td>
      </tr>
      <tr>
        <td>部门</td>
        <td>{%$value.department_name%}</td>
      </tr>
      <tr>
        <td>标题</td>
        <td>{%$value.summarize_title%}</td>
      </tr>
      <tr>
        <td>时间</td>
        <td>{%$value.create_time%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td ><a type="button" class="btn btn-warning  " href="index.php?a=summarize.ManageClassifyInfoList&summarize_id={%$value.summarize_id%}&from=bumen2" >查看</a> 
         
      </tr>
    </table>
	{%/foreach%}  	
  </div>
</div>
<!--container  end--> 

<!--主体部分  end--> 
{%include file="m.index.footer.tpl.php"%}
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历--> 

<!--日历--> 
<script>
  $(function() {
    $( "#start_time" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#end_time" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#end_time" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#start_time" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>
</body>
</html>
